<#include "../common/_layout.html"/>
<@layout>
   	 <p class="demo-desc">
   	  [
       	<#if (info.type == 1)>招聘</#if>
       	<#if (info.type == 2)>房源</#if>
       	<#if (info.type == 3)>买卖</#if>
       	<#if (info.type == 4)>活动</#if>
       	<#if (info.type == 5)>问答</#if>
       ]
	   ${(info.title)!}</p>
	 <div class="demo-block"> 	  
	    <div class="ui-whitespace">
	    	<#if (info.type == 1)>
	    	   <p class="ui-txt-highlight">${(info.price_range)!}</p>
               <p>招聘人数：${(info.amount)!}人</p>
               <p>招聘单位：${(info.company)!}</p>
               <p>工作地址：${(info.address)!}</p>
            </#if>
            
            <#if (info.type == 2)>
            	<p class="ui-txt-highlight">${(info.price)!}元/月</p>
            	<p>房源类别 ：${(info.category)!}</p>
            	<p>房源地址 ：${(info.address)!}</p>
            </#if>  
            
            <#if (info.type == 3)>
            	<p class="ui-txt-highlight"><#if info.price??>${(info.price)!}元</#if></p>
            	<p>买卖类别 ：${(info.category)!}</p>
            	<p>交易地址 ：${(info.address)!}</p>
            </#if> 
            
            <#if (info.type == 4)>
            	<p class="ui-txt-highlight"><#if info.price??>${(info.price)!}元<#else>免费</#if></p>
            	<p>主办方：${(info.company)!}</p>
            	<p>活动类别 ：${(info.category)!}</p>
            	<p>活动地址 ：${(info.address)!}</p>
            </#if>
            
            <#if (info.type != 5)>
             	<p>联&nbsp;&nbsp;系&nbsp;&nbsp;人：${(info.contacts)!}</p>
               <p>联系电话：${(info.mobile)!}</p>
               <p>联系QQ：${(info.qq)!}</p>
            </#if>
              
               <p>发布日期：${(info.createDateStr)!}</p>
           </div>
	  </div> 
					         
        <div class="demo-block"> 
           
           <div class="ui-flex ui-flex-ver ui-flex-pack-center ui-flex-align-start">
               <div style="margin-left: 10px"><b>描述</b></div>
			   <div>${(info.description)!}</div>
		   </div>
			
		   <#if (info.type == 1)>	
		   <div class="ui-flex ui-flex-ver ui-flex-pack-center ui-flex-align-start">
               <div style="margin-left: 10px"><b>公司简介</b></div>
               <div>${(info.introduce)!}</div>
           </div>
           </#if>
		</div>
        
         <div class="demo-block"> 
         	 <div class="ui-whitespace">审核状态：
         	 	<#if (info.pass_flag == -1)><span class="ui-txt-warning">未通过</span></#if>
                <#if (info.pass_flag == 0)><span class="ui-txt-highlight">待审核 </span></#if>
                <#if (info.pass_flag == 1)><span class="ui-txt-feeds">通过</span></#if>
         	 </div>
         </div>
        <div class="ui-footer-stable ui-btn-group ui-border-t">
           <!--  <input type="button" class="ui-btn-lg ui-btn-primary" onclick="window.location='info/edit?id=${info.id}&type=${info.type}'" value="编辑"/>-->
            <button class="ui-btn-lg ui-btn-primary" onclick="window.location='info/edit?id=${info.id}&type=${info.type}'">编辑</button>
            <button class="ui-btn-lg ui-btn-danger" onclick="del(${info.id})">删除</button>
        </div>
        
        <script type="text/javascript">
			function del(id){
				 if(confirm("确定要删除吗？")){
					 $.ajax({
				         type: "post",
				         url: "info/delete",
				         data:{id:id},
				         success:function(data){
				        	 tips("删除成功");
							 setTimeout(function(){window.location.href='/my/list';},1000);
					       }
				    });
					
				 }
			}
        </script>
</@layout>        